#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import sysrotationpic_blueprint
from api_1_0.sysRotationPicResource.sysRotationPicResource import SysRotationPicResource
from api_1_0.sysRotationPicResource.sysRotationPicOtherResource import SysRotationPicOtherResource

api = Api(sysrotationpic_blueprint)

api.add_resource(SysRotationPicResource, '/sysRotationPic/<pic_id>', '/sysRotationPic', endpoint='SysRotationPic')


@sysrotationpic_blueprint.route('/sysrotationpic/update/<pic_id>', methods=['PUT'], endpoint='SysRotationPicUpdate')
def update(pic_id):
    return SysRotationPicOtherResource.sensitive_update(pic_id)
